package main

import (
	"golang.org/x/tour/wc"
	"strings"
)

func WordCount(s string) map[string]int {
	m := map[string]int{} 
	for _,val := range strings.Split(s," "){
		m[val] = m[val] + 1
	}
	return m
}

func main() {
	wc.Test(WordCount)
}
